//
//  WBDemoViewController.swift
//  czWB
//
//  Created by Qing on 2018/6/1.
//  Copyright © 2018年 成哥哥. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setUI()
        
    }
    
    /// 监听动作
    @objc private func showText()  {
        
        let vc = WBDemoViewController()
            
            navigationController?.pushViewController(vc, animated: true)
        
    }

}


// MARK: - 设置界面
extension WBDemoViewController {
    
    /// 设置UI
    private func setUI()  {
        
        title = "第\(navigationController?.children.count ?? 0 )页"

        navItem.rightBarButtonItem = UIBarButtonItem.init(title: "下一个", target: self, action: #selector(showText))
    }
    
}
